package com.example.shiyan3;

import android.annotation.SuppressLint;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.GridView;

import androidx.appcompat.app.AppCompatActivity;

public class all_main extends AppCompatActivity {

    Button back;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.all);
        @SuppressLint({"MissingInflatedId", "LocalSuppress"}) GridView gridview = findViewById(R.id.g);
        gridview.setAdapter(new image(this));
        back =  findViewById(R.id.back);
        back.setOnClickListener(this::click);
    }
    public void click(View view){
        finish();
    }
}
